<%@ Control Language="C#" AutoEventWireup="true" Codebehind="Category.ascx.cs" Inherits="Doctors_WebForum.UIControl.Contents.Category" %>
<asp:Panel ID="categoryWrapper" runat="server">
    <div id="topic-wrapper">
        <div id="search-box">
            <asp:TextBox ID="txtKeyword" runat="server">Enter your keyword</asp:TextBox>
            <asp:Button ID="btnSearch" runat="server" Text="Search" />
        </div>
        <div id="new-topic-icon">
            <asp:Repeater ID="rptAddNewTopic" runat="server">
                <ItemTemplate>
                    <a href="../../Default.aspx?module=post&cateid=<%#Eval("CategoryID") %>&action=add">
                        <img src="../../images/new_topic.gif" border="0" alt="Add new topic" /></a>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
    <div class="category-wrapper tableborder">
        <h3 class="category-title">
            <asp:Repeater ID="rptCategory" runat="server">
                <ItemTemplate>
                    <a href="../../Default.aspx?module=category&catid=<%#Eval("CategoryID") %>">
                        <%#Eval("Title") %>
                    </a>
                </ItemTemplate>
            </asp:Repeater>
        </h3>
        <table cellspacing="1" cellpadding="0" border="0">
            <tbody>
                <asp:Repeater ID="rptAllPostsByCategory" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td class="square-even align-center">
                                <img src="../../images/red_cross.png" alt="" title="">
                            </td>
                            <td class="square-odd">
                                <h4>
                                    <a href="../../Default.aspx">
                                        <%#Eval("Title")%>
                                    </a>
                                </h4>
                                <p class="category-description">
                                    Description
                                </p>
                            </td>
                            <td class="square-even smalltext align-center">
                                1
                                <br>
                                1
                            </td>
                            <td class="square-odd smalltext">
                                MemberUsername<br>
                                <a href="#" title="Welcome to SMF!">Welcome to DWF!</a><br>
                                <b>Today</b> at 07:46:10 pm
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
    </div>
</asp:Panel>
